package com.changgou.goods.exception;

public class MyException extends RuntimeException {

    private EnumException enumException;


    public MyException(EnumException enumException) {
        this.enumException = enumException;
    }

    public EnumException getEnumException() {
        return enumException;
    }

    public  static  MyException method(EnumException e){
        throw new MyException(e);
    }

}
